<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'personnel-technique-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

	<p class="note">Les champs avec une <span class="required">*</span> doivent être remplis.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'NOM_PERSONNEL'); ?>
		<?php echo $form->textField($model,'NOM_PERSONNEL',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'NOM_PERSONNEL'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'PRENOM_PERSONNEL'); ?>
		<?php echo $form->textField($model,'PRENOM_PERSONNEL',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'PRENOM_PERSONNEL'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'MAIL_PERSONNEL'); ?>
		<?php echo $form->textField($model,'MAIL_PERSONNEL',array('size'=>60,'maxlength'=>60)); ?>
		<?php echo $form->error($model,'MAIL_PERSONNEL'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'FONCTION_PERSONNEL'); ?>
		<?php echo $form->dropDownList($model,'FONCTION_PERSONNEL',array('Opérateur','Responsable')); ?>
		<?php //echo $form->textField($model,'FONCTION_PERSONNEL',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'FONCTION_PERSONNEL'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'LOGIN_PERSONNEL'); ?>
		<?php echo $form->textField($model,'LOGIN_PERSONNEL',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'LOGIN_PERSONNEL'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'PASSWORD_PERSONNEL'); ?>
		<?php echo $form->passwordField($model,'PASSWORD_PERSONNEL',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'PASSWORD_PERSONNEL'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->